From fc2b696c64855c6a5366e68094e54b038562963b Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Thu, 26 Feb 2015 19:57:14 +0530 Subject: [PATCH] Fix type max value for consistency --- babl/babl-type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babl/babl-type.c b/babl/babl-type.c index 596346a..38feaeb 100644 --- a/babl/babl-type.c +++ b/babl/babl-type.c @@ -108,7 +108,7 @@ babl_type_new (void *first_arg, { bits = va_arg (varg, int); min = 0; - max = 1 << bits; + max = (1 << bits) - 1; } else if (!strcmp (arg, "integer")) { -- 2.30.2